using UnityEngine;
using MoonFramework.Template;

namespace Entity.Player
{
    public class PlayerController : BaseManager<PlayerController>
    {
        public Player Player;

        public void Init(Player player)
        {
            Player = player;
        }

        public bool CheckBuff(string buffName)
        {
            return Player.buffFsm.CheckBuff(buffName);
        }

        public Vector3 GetPos() => Player.viewController.transform.position;
    }
}